{% extends "main.html" %}
{% block title %}Редактирование урока{% endblock %}
{% block content %}
<h1>Урок {{ lesson.id }}. {{lesson.title}}</h1>
    {% for no in contents %}
       <div style="margin:10px;padding:10px;border:1px dashed gray;">
         <div align="right">
         {% if not forloop.first %}
            <a href="UP/{{no.id}}">UP</a> &nbsp;&nbsp;&nbsp;
         {% endif %}
         {% if not forloop.last %}
            <a href="DOWN/{{no.id}}">DOWN</a>
         {% endif %}
         </div>
         {% include "lessonnode.html" %}
       </div>

    {% endfor %}

{% endblock%}